if(cc.sys.isNative){
    cc.log("socket io is native ",SocketIO)
    window.io = SocketIO.connect
}else{
    cc.log("socket io  is not native",cc.sys.isMobile)
    window.io = require('socket-io')
}